//
//  ViewController.m
//  fangwangyi
//
//  Created by 臧松 on 16/4/26.
//  Copyright © 2016年 zangsong. All rights reserved.
//

#import "ViewController.h"
#import "ZSNewsChannelView.h"
#import "ZSCollectionViewlayout.h"
#import "ZSNewsDataView.h"
#define kWIDTH [UIScreen mainScreen].bounds.size.width
#define kHEIGHT [UIScreen mainScreen].bounds.size.height

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // 初始化新闻频道界面
    ZSCollectionViewlayout * layout = [[ZSCollectionViewlayout alloc]initWithString:@"ZSNewsChannelView"];
    ZSNewsChannelView * channelView = [[ZSNewsChannelView alloc]initWithFrame:CGRectMake(0, 20, kWIDTH, 35) collectionViewLayout:layout];
    [self.view addSubview:channelView];
    // 初始化新闻数据界面
    ZSCollectionViewlayout * layout1 = [[ZSCollectionViewlayout alloc]initWithString:@"ZSNewsDataView"];
    ZSNewsDataView* dataView = [[ZSNewsDataView alloc]initWithFrame:CGRectMake(0, 55, kWIDTH, kHEIGHT -55) collectionViewLayout:layout1];
    [self.view addSubview:dataView];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
